namespace BXS.API.Models
{
    /// <summary>
    /// 分类模型
    /// </summary>
    public class Category
    {
        /// <summary>
        /// 分类ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 分类类型
        /// </summary>
        public string Type { get; set; } = "product";

        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; } = string.Empty;

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; } = "active";

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreateTime { get; set; } = string.Empty;

        /// <summary>
        /// 商品数量
        /// </summary>
        public int ProductCount { get; set; }
    }

    /// <summary>
    /// 分类创建请求
    /// </summary>
    public class CreateCategoryRequest
    {
        /// <summary>
        /// 分类名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 分类类型
        /// </summary>
        public string Type { get; set; } = "product";

        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; } = string.Empty;

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; } = "active";
    }

    /// <summary>
    /// 分类更新请求
    /// </summary>
    public class UpdateCategoryRequest : CreateCategoryRequest
    {
        /// <summary>
        /// 分类ID
        /// </summary>
        public int Id { get; set; }
    }
} 